package com.ruoyi.business.mapper;

import com.ruoyi.business.domain.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Customer record);

    Customer selectByPrimaryKey(Long id);

    List<Customer> selectAll();

    int updateByPrimaryKey(Customer record);

    Customer checkCustomerNameUnique(String name);

    int deleteCustomerByIds(@Param("ids") Long[] ids);

    List<Customer> selectCustomerList(Customer customer);
}